home *** CD-ROM | disk | FTP | other *** search
- global gMA
-
- on launchBrowserUsingRefreshFile refreshFolder
- unloadMember()
- createMasterAppObject()
- if isMac() then
- set appPath to gMA(mLocateExecutable, refreshFolder & ":msie:refresh.htm")
- if appPath contains "Error: document file" then
- return 2
- end if
- if appPath contains "Error: can't locate" then
- set appPath to gMA(mLocateExecutable, refreshFolder & ":nav:refresh.htm")
- if appPath contains "Error: can't locate" then
- return 1
- else
- set instanceID to gMA(mLaunch, appPath, refreshFolder & ":nav:refresh.htm")
- end if
- else
- set instanceID to gMA(mLaunch, appPath, refreshFolder & ":msie:refresh.htm")
- end if
- if instanceID <= 0 then
- return instanceID
- else
- return 0
- end if
- else
- set appPath to gMA(mLocateExecutable, refreshFolder & "\msie\refresh.htm")
- if appPath contains "Error: " then
- return 1
- end if
- if appPath contains "iexplore.exe" then
- set instanceID to gMA(mLaunch, appPath, refreshFolder & "\msie\refresh.htm")
- else
- set instanceID to gMA(mLaunch, appPath, refreshFolder & "\nav\refresh.htm")
- end if
- if instanceID < 32 then
- return -1 * instanceID
- else
- return 0
- end if
- end if
- end
-
- on isMac
- return the machineType <> 256
- end
-
- on createMasterAppObject
- global j2345q8345s3245, gMasterAppObject, j2736d2937m2382, gVoid
- if not objectp(gMA) then
- if isMac() then
- openXLib(the moviePath & "Xtras:MasterApp XObject")
- set j2345q8345s3245 to "u2321h8334k9372"
- set gMA to MasterApp(mnew)
- set j2345q8345s3245 to gVoid
- else
- openXLib(the moviePath & "Xtras\mastrapp.dll")
- set j2736d2937m2382 to "Y7729J3338J3942"
- set gMA to MasterApp(mnew)
- set j2736d2937m2382 to gVoid
- end if
- if not objectp(gMA) then
- return
- end if
- end if
- end
-
- on testUGP
- if isMac() then
- put launchBrowserUsingRefreshFile(the moviePath & "websites:ultragp")
- else
- put launchBrowserUsingRefreshFile(the moviePath & "websites\ultragp")
- end if
- end
-
- on testIMAGINE
- if isMac() then
- put launchBrowserUsingRefreshFile(the moviePath & "websites:imagine")
- else
- put launchBrowserUsingRefreshFile(the moviePath & "websites\imagine")
- end if
- end
-